/*
 * Copyright (c) 2010, 2014, Jumei and/or its affiliates. All rights reserved.
 * JUMEI PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 */
package com.demo.conf;

/** Base class for things that may be configured with a {@link com.jumei.squirrel.common.conf.Configuration}. */
public class Configured implements Configurable {

  private Configuration conf;

  /** Construct a Configured. */
  public Configured() {
    this(null);
  }
  
  /** Construct a Configured. */
  public Configured(Configuration conf) {
    setConf(conf);
  }

  // inherit javadoc
  public void setConf(Configuration conf) {
    this.conf = conf;
  }

  // inherit javadoc
  public Configuration getConf() {
    return conf;
  }

}
